﻿using System;
using System.Drawing;

namespace QAQ
{
    class StateClass
    {        
        public string staname;
        public StateEnum staenum;
        public Bitmap staBitmapCmp;
        public Point staPoint;
        public Rectangle staRect;
        public StateClass() { 
        
        }
        public StateClass(string name,Bitmap b,Point pp,Rectangle rr)
        {            
            this.staname = name;
            this.staBitmapCmp = b;
            this.staPoint = pp;
            this.staRect = rr;
        }
        public StateClass(StateEnum se, Point p)
        {
            this.staname = Enum.GetName(typeof(StateEnum),se);
            this.staenum = se;
            this.staPoint = p;
        }
        public StateClass(string name, Point pp)
        {
            this.staname = name;            
            this.staPoint = pp;

            this.staBitmapCmp = null;
            this.staRect = Rectangle.Empty;
        }
    }
}
